<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.js"></script>
    <script>
        $(function () {
            $("#send").click(function () {
                var msg=$("#txt").val();
                frames[0].postMessage(msg,'http://localhost:8080')

            });
        });
    </script>
</head>
<body>
    <!--iframe可跨域-->
    <iframe src="http://localhost:8080/getMessage.html" frameborder="0"></iframe>
    <input placeholder="请输入你的帐号，跨域送到order域中" id="txt">
    <button id="send">发送</button>
</body>
</html>